import React,{Component} from 'react';
import Tools from './tools.js'
import RefreshList from '../../../common/refresh.list.js'
import CouponsItem from '../../../common/couponsItem.js';
const data=[1,2,3,4];
export default  class CouponList extends Component{
    upFresh=(callback)=>{
        setTimeout(()=>callback(1),2000)
    };
    downLoad=(callback)=>{
        setTimeout(()=>callback(1),2000)
    };
    rowList=(key,i)=>{
        return <CouponsItem key={key} />
    }
    render(){
        return(
            <div>
                <Tools/>
                <div className="main-shop-list">
                    <RefreshList
                        contentHeight={1000}
                        isFresh={true}
                        isLoad={true}
                        upFresh={this.upFresh}
                        downLoad={this.downLoad}
                        Data={data}
                        Row={this.rowList}
                        />
                </div>
            </div>
        )
    }
}